<html>
	<head>
		<title></title>

		<script type="text/javascript" src="../js/jquery-1.4.1.js"></script>
		<script type="text/javascript" src="../js/jquery.jsonrpc.js"></script>
		<script type="text/javascript">
			function testSmdAction() {
				$.jsonRPC.setup({
					endPoint: 'smdAction.action',
					namespace: ''
				});

				$.jsonRPC.request('getMyUserList', [10], {
					success: function(result) {
						var s = "";
						for (var idx = 0; idx < result.length; idx++) {
							s += "user["+idx+"].id=" + result[idx].id + "\n";
						}
						alert(s);
					},
					error: function(result) {
						alert('error: ' + result);
					}
				});
			}
		</script>
	</head>

	<body style="margin: 20px;">
		<h3>json test</h3>
		<ul>
			<li><a href="#" onclick="testSmdAction()">SMD Action</a></li>
		</ul>
	</body>
</html>
